package com.doit.day03

import scala.collection.mutable.ArrayBuffer

object _07_foreach算子 {
  def main(args: Array[String]): Unit = {

    val list: List[Int] = List(1, 2, 3, 4, 5)

//    val f = (a:Int)=>{println(a)}
    //foreach算子
    list.foreach(println)




  }

}
